<?php
echo "PHP版本: " . phpversion() . "\n";
echo "可用PDO驱动: " . implode(', ', PDO::getAvailableDrivers()) . "\n";
echo "php.ini路径: " . php_ini_loaded_file() . "\n";

if (extension_loaded('pdo_mysql')) {
    echo "✅ PDO MySQL驱动已启用\n";
} else {
    echo "❌ PDO MySQL驱动未启用\n";
}

if (extension_loaded('pdo_sqlite')) {
    echo "✅ PDO SQLite驱动已启用\n";
} else {
    echo "❌ PDO SQLite驱动未启用\n";
}

phpinfo(INFO_MODULES);
?>